import request from '@/utils/request'

/**
 * 新车库存--调拨出入库
 * @param {*} form
 * @param {*} pageSize
 * @param {*} currentPage
 */
export function dataList(form, pageSize, currentPage) {
  const data = {
    param: form,
    pageSize: pageSize,
    pageNo: currentPage
  }
  return request.post('/sq/thrk/page', data)
}

/**
 * 确认
 * @param {*} id 
 */
export function sureInstock(form={}) {
  return request.post('/sq/thrk/qr', form)
}
/**
 * 根据id查询详情
 * @param {*} options
 */
export function details(id) {
  return request.get('/sq/thrk/detail/' + id)
}
/**
 * /sq/thrk/status/{id}入库完成
 * @param {*} storeId 
 */
export function findByStatus(storeId) {
  return request.get('/sq/thrk/status/' + storeId)
}
